package top.ajun.mall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.ajun.common.utils.PageUtils;
import top.ajun.mall.ware.entity.PurchaseEntity;
import top.ajun.mall.ware.vo.MergeVo;
import top.ajun.mall.ware.vo.PurchaseDoneVo;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author AJun
 * @email 1241088536@qq.com
 * @date 2020-11-24 22:35:12
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询未领取的采购单
     */
    PageUtils queryPageUnReceive(Map<String, Object> params);

    /**
     * 合并采购需求
     */
    void mergePurchase(MergeVo mergeVo);

    /**
     * 领取采购单
     */
    void receivePurchase(List<Long> ids);

    /**
     * 完成采购
     */
    void donePurchase(PurchaseDoneVo doneVo);

}

